package software;

import java.util.Iterator;

import softdone.Rep_done;
import softdata.Pla_item;
import softdata.Rep_data;

public class Rep_Reply extends Rep_done{
	private Rep_data repdata= new Rep_data();
	private Iterator iterator;
	public void ReplyInsert(){
		Rep_Reply(repdata.ID_Post,repdata.ID_User,repdata.Rep_Ploor,repdata.Content);
	}
	public void ReplyRead(int s){
		Rep_Read(repdata.ID_Post,s);
		iterator=Replies.iterator();
	}
	public void RepNext(){
		if(iterator.hasNext())
			repdata=(Rep_data)iterator.next();
	}
	public void setID_Post(int s){
		repdata.ID_Post=s;
	}
	public void setID_User(int s){
		repdata.ID_User=s;
	}
	public void setRep_Floor(int s){
		repdata.Rep_Ploor=s;
	}
	public void setContent(String s){
		repdata.Content=s;
	}
	
	public String getContent(){
		return repdata.Content;
	}
	public int getID_User(){
		return repdata.ID_User;
	}
	public int getFloor(){
		return repdata.Floor;
	}
	public int getRep_Floor(){
		return repdata.Rep_Ploor;
	}
	public String getPhoRep(){
		return repdata.Pho_Rep;
	}
	public int getIntegral(){
		return repdata.Integral_Rep;
	}
	public String getTim_Post(){
		//回帖时间
		return repdata.Tim_Post;
	}
	public String getNam_User(){
		return repdata.Name_User;
	}
	public int getNum_Page(){
		//第几页回复内容条数
		return Num_Page;
	}
}
